##
## Makefile for libmy Makefile in /home/labonn_c//Documents/piscine/libmy
## 
## Made by christophe labonnemartinez
## Login   <labonn_c@epitech.net>
## 
## Started on  Mon Oct 24 09:43:37 2011 christophe labonnemartinez
## Last update Tue Nov  1 13:08:22 2011 christophe labonnemartinez
##

NAME	= libmy.a

AAR	= ar rc

CC	= cc -c

RAN	= ranlib

RM	= rm -f

SRC	= my_find_prime_sup.c 	\
	  my_getnbr.c		\
	  my_isneg.c 		\
	  my_is_prime.c 	\
	  my_power_rec.c 	\
	  my_putchar.c 		\
	  my_put_nbr.c 		\
	  my_putstr.c 		\
	  my_revstr.c 		\
	  my_showmem.c 		\
	  my_showstr.c 		\
	  my_sort_int_tab.c 	\
	  my_square_root.c 	\
	  my_strcapitalize.c 	\
	  my_strcat.c 		\
	  my_strcmp.c 		\
	  my_strcpy.c 		\
	  my_str_isalpha.c 	\
	  my_str_islower.c 	\
	  my_str_isnum.c 	\
	  my_str_isprintable.c 	\
	  my_str_isupper.c 	\
	  my_strlcat.c 		\
	  my_strlen.c 		\
	  my_strlowcase.c 	\
	  my_strncat.c 		\
	  my_strncmp.c 		\
	  my_strncpy.c 		\
	  my_strstr.c 		\
	  my_strupcase.c 	\
	  my_swap.c		\
	  my_putnbr_base.c	\
	  my_getnbr_base.c

OBJ	= $(SRC:.c=.o)	

all:	fclean OB AR RA CH CP clean

OB:
	$(CC) $(SRC)

AR:	OB
	$(AAR) $(NAME) $(OBJ)

RA:	AR
	$(RAN) $(NAME)

CH:
	chmod 640 $(NAME)

CP:
	mv $(NAME) ../

clean:
	$(RM) $(OBJ)

fclean:
	$(RM) $(OBJ) $(NAME)